#!/bin/zsh

# fuck sudo, all my homies use doas
if [ -x /usr/bin/sudo ]; then
    alias sudo="/dev/null"
fi

# overkill kitty scrollback clearing
if [ $TERM = xterm-kitty ]; then
    alias clear="printf '\033[2J\033[3J\033[1;1H'"
fi

case $TERM in
    xterm-kitty)
        alias icat="kitty +icat"
        ;;
    foot)
        alias icat="chafa"
        # alias tmux="TERM=xterm-256color tmux"
        ;;
    xterm-256color)
        alias icat="chafa"
        ;;
esac

alias ls="ls --color"
alias ll="ls -alF"
alias la="ls -A"
alias l="ls -CF"
alias grep="grep --color"
alias egrep="egrep --color"

alias v=$EDITOR
alias gitv='nvim +Neogit'

alias py=python3
alias kilall=killall
alias hex='hexdump -C | less'

alias yt-dlpp='yt-dlp --proxy "socks5://127.0.0.1:2080"'
alias gzdoom='DISPLAY= gzdoom' # fixes gliches on dwl
